package org.sdp.pearproject.dao.mapper;

import org.sdp.pearproject.dao.domain.*;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * InterfaceName: DepartmentMapper
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-15
 * @Version: 1.0
 * Table: pear_department
 * Comment:
 * 部门表
 */
public interface DepartmentMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteById(Integer id);

    int deleteByCode(String code);

    int deleteByExample(DepartmentExample example);

    int insert(DepartmentWithBLOBs record);

    int insertSelective(DepartmentWithBLOBs record);

    List<DepartmentWithBLOBs> selectByExampleWithBLOBs(DepartmentExample example);

    List<Department> selectByExample(DepartmentExample example);

    int countByExample(DepartmentExample example);

    Department selectByPrimaryKey(Integer id);

    DepartmentWithBLOBs selectByPrimaryKeyWithBLOBs(Integer id);

    Department selectById(Integer id);

    DepartmentWithBLOBs selectByIdWithBLOBs(Integer id);

    Department selectByCode(String code);

    DepartmentWithBLOBs selectByCodeWithBLOBs(String code);

    int updateByExampleSelective(@Param("record") DepartmentWithBLOBs record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(DepartmentWithBLOBs record);

    int updateByIdSelective(DepartmentWithBLOBs record);

    int updateByCodeSelective(DepartmentWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(DepartmentWithBLOBs record);

    int updateByPrimaryKey(Department record);

    int updateById(Department record);

    int updateByIdWithBLOBs(DepartmentWithBLOBs record);

}
